# 构建阶段
FROM golang
LABEL authors="48356"
WORKDIR /app
COPY . /app
RUN go env -w GO111MODULE=on \
    && go env -w GOPROXY=https://goproxy.cn,direct \
    && go env -w CGO_ENABLED=0 \
    && go env \
    && go mod tidy
CMD ["go", "run","/app/main.go"]

EXPOSE 8000




#FROM redis
#EXPOSE 6379

#FROM nginx
#COPY ./conf/nginx.conf /etc/nginx/nginx.conf
#EXPOSE 80
